package com.tedu.lingmaagent.controller;


import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;

@Tag (name = "API模块")
@RestController
@RequestMapping("/api")
public class APIController {

    @Operation(summary = "测试请求发送")
    @RequestMapping("/req")
    public String request() {
        return "request 方式";
    }
    @Operation(summary = "Get请求方式")
    @GetMapping(value = "/get")
    public String get() {
        return "get 请求方式";
    }

/*    @Operation(summary = "Get请求方式")
    @GetMapping(value = "/get",method = RequestMethod.GET)
    public String get1() {
        return "get 请求方式";
    }*/

    @Operation(summary = "Post请求方式")
    @PostMapping(value = "/post")
    public String post() {
        return "post 请求方式";
    }



}
